package com.chuangke.lowcode;

import com.chuangke.lowcode.model.EntityModel;

import java.util.HashMap;
import java.util.Map;

public class EntityModelConstants {

    public static final Map<String, EntityModel> ENTITY_MODEL_MAP = new HashMap<>() ;

    public static void registerEntityModel(String formId,EntityModel entityModel) {
        ENTITY_MODEL_MAP.put(formId, entityModel);
    }

    public static EntityModel getEntityModel(String formId) {
        return ENTITY_MODEL_MAP.get(formId);
    }
}
